package com.coldchain.authclient.configuration;

import com.coldchain.authclient.config.ServiceAuthConfig;
import com.coldchain.authclient.config.UserAuthConfig;
import com.coldchain.common.hystrix.BaseHystrixConcurrencyStrategy;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.fangliai")
@EnableFeignClients({"com.coldchain.authclient.feign"})
public class AutoConfiguration {
    @Bean
    ServiceAuthConfig getServiceAuthConfig() {
        return new ServiceAuthConfig();
    }

    @Bean
    UserAuthConfig getUserAuthConfig() {
        return new UserAuthConfig();
    }



    @Bean
    public BaseHystrixConcurrencyStrategy newBaseHystrixConcurrencyStrategy() {
        return new BaseHystrixConcurrencyStrategy();
    }

}
